package com.briup.spring_swagger.web.controller;

import com.briup.spring_swagger.bean.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;



@Api(tags = "用户管理模块")
@RequestMapping("/user")
@RestController
public class UserController {
    @ApiOperation(value = "根据编号查询用户信息",notes = "该接口主要XXX")
    @ApiImplicitParams({
            @ApiImplicitParam(name="id",value = "工号",dataType = "int",required = true)
    })//表示方法的参数信息
    @GetMapping()
    public User SelectById(@RequestParam Integer id){
        return new User(id,"jok");
    }


}
